home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
etc
/
event.d
/
rcS-sulogin
< prev
next >
Wrap
Text File
|
2008-09-29
|
575b
|
29 lines
# rcS-sulogin - "single-user" runlevel compatibility
#
# This task runs the sulogin binary during "single-user" mode.
start on runlevel S
stop on runlevel
console owner
script
runlevel --set S >/dev/null || true
if [ -x /usr/share/recovery-mode/recovery-menu ]; then
/usr/share/recovery-mode/recovery-menu
else
/sbin/sulogin
fi
if [ -r /etc/inittab ]; then
RL="$(sed -n -e "/^id:[0-9]*:initdefault:/{s/^id://;s/:.*//;p}" /etc/inittab || true)"
if [ -n "$RL" ]; then
telinit $RL
else
telinit 2
fi
else
telinit 2
fi
end script